package com.jetsum.micro.controller;

import com.jetsum.micro.service.FeignDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {

    @Autowired
    private FeignDemoService feignDemoService;

    @GetMapping("/hello")
    public String hello(){
        return feignDemoService.hello();
    }

}
